package com.ego.product.dao;

import com.ego.product.po.SkuInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ego.product.vo.SkuFilteredVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: ego
 * @description sku信息持久层
 * @author KamTang
 * @date 2022-11-13 12:56:14
 */
public interface SkuInfoDao extends BaseMapper<SkuInfo> {
    /**
     * 过滤其他sku，满足用户选择的分类下和品牌
     * @param categoryId 分类ID
     * @param brandId 品牌ID
     * @return @see
     * @see SkuFilteredVo
     */
    List<SkuFilteredVo> filter(@Param("categoryId") Long categoryId, @Param("brandId") Long brandId);
}
